package com.coolcode.assember;

import com.coolcode.entity.UserInfo;
import com.coolcode.vo.UserInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface CommonAssembler {

    @Mapping(source = "username", target = "userName")
    UserInfo convertUserInfo(UserInfoVO userInfoVO);
}
